package routes

import (
	"GoLangHelloWorld/controllers"
	"github.com/gin-gonic/gin"
)

func SetupRoutes(r *gin.Engine) {
	userController := controllers.UserController{}
	r.GET("/users", userController.GetUsers)
	r.GET("/users/:id", userController.GetUser)
	r.POST("/users", userController.CreateUser)
	r.PUT("/users/:id", userController.UpdateUser)
	r.DELETE("/users/:id", userController.DeleteUser)
}
